import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/pages/Home/home'
import City from '@/pages/City/City'
import Deteil from '@/pages/Deteil/Deteil'
import Cityhot from '@/pages/hot/Cityhot'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/city',
      name: 'City',
      component:City
    },
    {
      path:'/deteil/:id',
      name:'Deteil',
      component:Deteil
    },
    {
      path:'/cityhot',
      name:'Cityhot',
      component:Cityhot
    }
  ]
})
